<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
                                         "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
	<session-factory>
		<!-- MySQL -->
		<property name="hibernate.connection.driver_class">org.gjt.mm.mysql.Driver</property>
		<property name="hibernate.connection.password">2618</property>
		<property name="hibernate.connection.url">jdbc:mysql://127.0.0.1:3306/news</property>
		<property name="hibernate.connection.username">root</property>
		<property name="hibernate.dialect">org.hibernate.dialect.MySQL5Dialect</property>
		
		<!-- CONFIGURATION -->
		<property name="hibernate.show_sql">true</property>
		<property name="hibernate.max_fetch_depth">2</property>
		
		<!-- ENTITIES -->
		<mapping class="br.com.news.database.entities.AcessoNoticiaEntity" />
		<mapping class="br.com.news.database.entities.AlternativaEnqueteEntity" />
		<mapping class="br.com.news.database.entities.AnuncioEntity" />
		<mapping class="br.com.news.database.entities.AuditoriaEntity" />
		<mapping class="br.com.news.database.entities.CategoriaEntity" />
		<mapping class="br.com.news.database.entities.CategoriaUsuarioEntity" />
		<mapping class="br.com.news.database.entities.ComentarioEntity" />
		<mapping class="br.com.news.database.entities.ContatoEntity" />
		<mapping class="br.com.news.database.entities.EmailIndicacaoEntity" />
		<mapping class="br.com.news.database.entities.EnqueteEntity" />
		<mapping class="br.com.news.database.entities.FonteEntity" />
		<mapping class="br.com.news.database.entities.NoticiaEntity" />
		<mapping class="br.com.news.database.entities.PerfilEntity" />
		<mapping class="br.com.news.database.entities.RespostaEnqueteEntity" />
		<mapping class="br.com.news.database.entities.UsuarioAndroidEntity" />
		<mapping class="br.com.news.database.entities.UsuarioEntity" />
		<mapping class="br.com.news.database.entities.UsuarioTipoEntity" />
	</session-factory>
</hibernate-configuration>
